Skip to content

Fix OpenAPI multipart file field uploads - #1530

Open
BittuBarnwal7479 wants to merge 3 commits into
UsefulSoftwareCo:mainfrom
BittuBarnwal7479:fix-openapi-multipart-file-fields
Open

Fix OpenAPI multipart file field uploads#1530
BittuBarnwal7479 wants to merge 3 commits into
UsefulSoftwareCo:mainfrom
BittuBarnwal7479:fix-openapi-multipart-file-fields

Conversation

@BittuBarnwal7479

Copy link
Copy Markdown

Summary

Fix OpenAPI multipart format: binary fields so they are exposed as ToolFile inputs and sent as real multipart file parts instead of plain form fields.

fixes: #1401

Changes

  • Map multipart binary string fields to the existing ToolFile input schema.
  • Convert ToolFile values into multipart file parts with bytes, filename, and content type.
  • Add a regression test for a Paperless-style PDF upload field.

Tests

  • bun run --cwd packages/plugins/openapi test non-json-body.test.ts
  • bun run --cwd packages/plugins/openapi typecheck

@BittuBarnwal7479
BittuBarnwal7479 force-pushed the fix-openapi-multipart-file-fields branch from d312a1d to e0a102c Compare August 4, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAPI multipart file fields are serialized as plain form fields

1 participant